// 教练管理模块相关的TypeScript类型定义

/**
 * 教练信息
 */
export interface Coach {
  id: number
  name: string
  phone: string
  email: string
  avatar: string
  gender: number // 0-未知, 1-男, 2-女
  birthday: string
  address: string
  specialty: string // 专长
  certificate: string // 证书
  experience: number // 教练经验(年)
  status: number // 0-禁用, 1-正常
  createdAt: string
  updatedAt: string
}

/**
 * 创建教练请求参数
 */
export interface CreateCoachRequest {
  name: string
  phone: string
  email?: string
  avatar?: string
  gender?: number
  birthday?: string
  address?: string
  specialty?: string
  certificate?: string
  experience?: number
}

/**
 * 更新教练请求参数
 */
export interface UpdateCoachRequest {
  name?: string
  phone?: string
  email?: string
  avatar?: string
  gender?: number
  birthday?: string
  address?: string
  specialty?: string
  certificate?: string
  experience?: number
  status?: number
}

/**
 * 教练列表响应数据
 */
export interface CoachListResponse {
  list: Coach[]
  total: number
  page: number
  pageSize: number
}
